# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=slick-greeter
pkgver=1.5.3
pkgrel=0
pkgdesc="a slick-looking LightDM greeter"
url="https://github.com/linuxmint/slick-greeter"
arch="all !s390x !riscv64" # limited by lightdm
license="GPL-3.0-only"
makedepends="automake autoconf libtool libcanberra-dev lightdm-dev gnome-common vala"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/slick-greeter/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
212c8cddb93516fc54121d97e9bc0edaa0d225482ff14e7b9f6eb70280a13d9cb0842a7a9049284d12b791ed3af2019a62d55d06cf226c6d50225717df410b57  slick-greeter-1.5.3.tar.gz
"
